<h1>Listing classrooms</h1>

<table>
  <tr>
    <th>Title</th>
    <th>Start date</th>
    <th>End date</th>
    <th>Capacity</th>
    <th>Duration</th>
    <th>Value</th>
    <th>City</th>
  </tr>

<% @classrooms.each do |classroom| %>
  <tr>
    <td><%=h classroom.title %></td>
    <td><%=h classroom.start_date %></td>
    <td><%=h classroom.end_date %></td>
    <td><%=h classroom.capacity %></td>
    <td><%=h classroom.duration %> <%=h classroom.time_category.title %></td>
    <td><%=h classroom.value %> <%=h classroom.currency.title %></td>
    <td><%=h classroom.city.title %></td>
    <td><%= link_to 'Show', classroom %></td>
    <td><%= link_to 'Edit', edit_classroom_path(classroom) %></td>
    <td><%= link_to 'Destroy', classroom, :confirm => 'Are you sure?', :method => :delete %></td>
  </tr>
<% end %>
</table>

<br />

<%= link_to 'New classroom', new_classroom_path %>